package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ReadStringDemo {
    public static void main(String[] args) throws IOException {




//        FileInputStream fis = new FileInputStream("sdfsf.txt");
//        int len = fis.available();
//        byte[] data = new byte[len];
//        fis.read(data);
//
//        String line = new String(data,"UTF-8");
//        System.out.println(line);
//
//        fis.close();
















        FileInputStream fis = new FileInputStream("ooooo.wps");
        int len = fis.available();
        byte[] data = new byte[len];
        fis.read(data);
        String line = new String(data,"UTF-8");


        System.out.println("写出完毕！！！");

        fis.close();


















    }
}
